feat(opencode): add Claude Code ACP runtime - #41901
Closed
stocky789 wants to merge 1 commit into
Closed
Conversation
Contributor
|
The following comment was made by an LLM, it may be inaccurate: The search results show only PR #41901 (the current PR) as the only exact match for Claude Code ACP runtime implementation. The other results like #29789 (Dynamic workflows) and #20491 (Kiro provider) are different features. No duplicate PRs found |
Author
|
Superseded by a replacement draft using the existing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Related to #5182, #20002, and #24038.
Type of change
What does this PR do?
Adds Claude Code as an OpenCode runtime through
@agentclientprotocol/claude-agent-acp.Selecting Claude Code from
/modelsstarts an ACP session in the current workspace and maps Claude's streamed text, reasoning, tool calls, permissions, questions, usage, compaction, and configuration updates into OpenCode's existing session and TUI. Claude-specific slash commands and effort/fast state are shown only while this runtime is selected.Claude Code continues to own authentication and model execution; OpenCode does not read or manage subscription credentials.
This is a draft for architecture review and refactoring before it is marked ready.
How did you verify your code works?
/effortand/fastcommand surfaces in the TUI.bun typecheckpasses inpackages/opencode,packages/tui, andpackages/app.packages/opencode; 19 pass inpackages/tui; 7 pass inpackages/app.Known draft blockers: the five failing tests cover Windows-path handling when run on Linux, and an actual Claude prompt through the standalone executable currently exits with
ACP connection closed. Both need to be resolved before this is ready for review.Screenshots / recordings
Captured from the installed branch in an isolated fixture workspace.
Before — upstream
devhas no Claude Code model resultAfter — Claude Code models in
/modelsClaude-specific slash commands
Claude
/effortlevelsClaude
/fasttoggleChecklist